<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> 
<title>Construction...</title>
<link rel="shortcut icon" href="favicon.ico" />
<style type="text/css">
<!--
body { font-family: 微软雅黑, Arial, 宋体, "Courier New"; }
ol {
  font-size: 14px;
  line-height: 26px;
}

div {width: 100%; margin: 0px; padding: 100px 0 0 0; text-align: center;}
.red {color: red;}
.strong {font-weight: bold;}
.ras {color: red; font-weight: bold;}
-->
</style>

<script type="text/javascript">
function compute(){
  var timename= " 2011年春节(2月3日) ";
  var timedate= new Date("Feb 3,2011");
  var now = new Date();
  var time = timedate.getTime() - now.getTime();
  var date = Math.floor(time / (1000 * 60 * 60 * 24) + 1);
  var hour = Math.floor(time / (1000 * 60 * 60));
  var week = Math.floor(date / 7);
  var day = date % 7;
  var timeObj = document.getElementById('result');
  if (time >= 0){
    timeObj.innerHTML = "距离<span class=\"strong\">" + timename + "</span>还有<span class=\"ras\">" + date + "</span>天 (即" + week +"周零" + day + "天 / 即" + hour + "小时)";
  }else if (time <=3){
    time *= -1;
    timeObj.innerHTML = "<span class=\"red\">" + timename + "已过" + date +"天</span>";
  }
}
</script>

</head>

<body onload="javascript: compute();">

<div>
  <span id="result"></span>

  <br/><br/>
  <a href="http://blog.rickyxu.info/">进入博客</a>
  |
  <a href="http://www.rickyxu.info/widgets/">小工具</a>
  <br/><br/>

  <script src="http://s13.cnzz.com/stat.php?id=2475248&web_id=2475248&show=pic" language="JavaScript"></script>
</div>
</body>
</html>